#include<stdio.h>
int main()
{
	char s[100];
	int i,n=0;
	gets(s);
	for(i=0;i<95;i++)
	{	
		if(s[i]=='h'&&s[(i+1)]=='e'&&s[(i+2)]=='l'&&s[(i+3)]=='l'&&s[(i+4)]=='o')
			n=n+1;
	}
	printf("%d",n);
}

